<?php
	include_once('phpbb2_settings.php');

	define('IN_PHPBB', true);
	include($phpbb_root_path . 'extension.inc');
	include($phpbb_root_path . 'common.'.$phpEx);

	include('phpbb2.functions.php');

	$return = $_GET['return'];
	$username = $_GET['username'];
	$password = $_GET['password'];
	$email = $_GET['email'];

	//echo "email: " . $email . "<br>";
	//echo "pass: " . $password . "<br>";

	$counter = 0;
	phpbb_login($username, $password, $email, $return, $counter, PAGE_INDEX);
?>
